<?php 
//echo $_POST['reply']; 
include('config.php');
include('show_smilies.php');   
include('functions.php');

if ($_SESSION['user_lang'] == "" or $_SESSION['user_lang'] == null) {
      include('lang/' . $def_language . '.php');
  }
  if ($_SESSION['user_lang'] != "") {
      include('lang/' . $_SESSION['user_lang'] . '.php');
  }

$mytext = ($_POST['reply']);
$mytext = my_nl2br($mytext);
$mytext = convEnt2($mytext);
$mytext = str_replace("\n", "<br>", $mytext);
$mytext = str_replace("\\", "", $mytext);
$mytext = str_replace("[quote][quote]", "[quote]", $mytext);
$mytext = str_replace("[/quote][/quote]", "[/quote]", $mytext);
$mytext = BBCode($mytext);
$mytext = smilies($mytext, 'img/smilies/');

echo "<table><tr><th><b><div align='center'>&nbsp;$l_preview:</b></div></th></tr>

<tr><td  class='postedText' VALIGN='top'></b><br><span>".$mytext."</span><br><br></td></tr></table><hr>";

?>
